﻿using MyAppAPI.Repositories.interfaceRepo;
using MyAppAPI.Services.interfaceService;

namespace MyAppAPI.Services
{
    public class UserServiceImpl : IUserService
    {
        public readonly IUserRepository userRepository;

        public UserServiceImpl(IUserRepository userRepository)
        {
            this.userRepository = userRepository;
        }
        public bool ExisUser(string username, string password,ref int userId)
        {
            return userRepository.ExisUser(username, password,ref userId);
        }
    }
}
